import request from '@/utils/request'

const unit = {
  myList(params) {
    return request.get('/kpzh/investUnit/myList', {params})
  },
  getList(params) {
    return request.get('/kpzh/investUnit/list', {params})
  },
  add(formData) {
    return request.post('/kpzh/investUnit/add', formData)
  },
  update(formData) {
    return request.post('/kpzh/investUnit/update', formData)
  },
  delete(id) {
    return request.post(`/kpzh/investUnit/delete/${id}`)
  },
  detail(id) {
    return request.post(`/kpzh/investUnit/detail/${id}`)
  },
  treeSelect() {
    return request.get('/system/orgStats/treeSelect')
  },
}

export default unit;
